package org.zxp.designpattern.adapter;

/**
 * @program: effectiveJava
 * @description:
 * @author: X-Pacific zhang
 * @create: 2019-08-22 15:20
 **/
public class Test {
    public static void main(String[] args){
        SimpleCalculate simpleCalculate = new SimpleCalculate();
        System.out.println(simpleCalculate.plus(1,2));


        System.out.println(simpleCalculate instanceof Calculate);//true


        System.out.println(simpleCalculate.hook(102));;//钩子方法演示
    }
}
